package com.snopy.designPattern.structure.proxy.dynamic.cjlib;

import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * @author snopy
 * @version 1.0.0
 * @classname CarProxy
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/15 14:17
 */
public class CarProxy implements MethodInterceptor {
    @Override
    public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {

        return methodProxy.invoke(o,objects);
    }
}
